import request from '@/utils/request'

export function getMenuList (data) {
  return request({
    url: '/api/setting/menu/index',
    method: 'post',
    data
  })
}

export function createMenu (data) {
  return request({
    url: '/api/setting/menu/store',
    method: 'post',
    data
  })
}

export function updateMenu (data) {
  return request({
    url: '/api/setting/menu/update',
    method: 'post',
    data
  })
}

export function deleteMenu (data) {
  return request({
    url: '/api/setting/menu/delete',
    method: 'post',
    data
  })
}
